package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 创建员工
     *
     * @param employeeDTO
     */
    void creat(EmployeeDTO employeeDTO);

    /**
     * 分页查询
     *
     * @param employeePageQueryDTO
     * @return {@link PageResult}
     */
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 更新状态
     *
     * @param id
     * @param status
     */
    void updateStatus(Long id, Integer status);

    /**
     * 通过id回显数据
     *
     * @param id
     * @return {@link Result}<{@link Employee}>
     */
    Employee queryById(Long id);

    /**
     * 更新员工
     *
     * @param employeeDTO
     */
    void updateEmp(EmployeeDTO employeeDTO);
}
